package com.example.diffservice.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author DestinyCc
 * @date 2022/4/8
 */
@Data
@AllArgsConstructor
public class SingleFileDifference {
    String filename;

    List<Difference> differences;

    public SingleFileDifference(String filename){
        this.filename = filename;
        this.differences = new ArrayList<>();
    }

    public void addDifference(Difference difference){
        this.differences.add(difference);
    }


}
